package com.sairobo.live.controller;

import com.sairobo.live.api.UserService;
import io.swagger.annotations.Api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

/**
 * Function:user控制器
 * @author crossoverJie
 * Date: 2017/6/7 下午11:55
 * @since JDK 1.8
 */
@RestController
@Api(value = "userApi", description = "用户API", tags = {"用户服务"})
public class UserController implements UserService {
    private final static Logger logger = LoggerFactory.getLogger(UserController.class);

    @Override
    public void getOrderNo() {
        System.out.println("getOrderNo");
    }

    @Override
    public void getUserByFeign() {
        System.out.println("getUserByFeign");
    }

    @Override
    public void getUserByFeignBatch() {
        System.out.println("getUserByFeignBatch");
    }

    @Override
    public String getUserByHystrix() {
        System.out.println("hi");
        return "hi";
    }
}
